<!--
 * @Author: xiemei
 * @Date: 2021-07-01 16:17:21
 * @LastEditors: xiemei
 * @LastEditTime: 2021-07-01 16:42:07
 * @FilePath: \vue-bilibili-v2\06-tabbar\src\components\tabbar\TabBar.vue
-->

<!-- 只负责tab-bar最外面大的部分,不负责tab-bar-item里应该放什么怎样放 -->
<template>
  <div>
    <div id="tab-bar">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'TabBar'
}
</script>

<style>
#tab-bar{
  display: flex;
  background-color: #f6f6f6;
  position: fixed;
  /* left和right保证可以正好占据屏幕宽度 */
  left: 0;
  right: 0;
  bottom: 0;
  
  box-shadow: 0px -1px 1px rgba(100, 100, 100, .15);
}

</style>
